import { vi } from 'vitest'
const mockElectron = {
  app: {
    whenReady: vi.fn().mockResolvedValue(undefined),
    on: vi.fn(),
    quit: vi.fn(),
    isReady: vi.fn().mockReturnValue(true),
    setAppUserModelId: vi.fn()
  },
  BrowserWindow: vi.fn().mockImplementation(() => ({
    on: vi.fn(),
    show: vi.fn(),
    webContents: {
      setWindowOpenHandler: vi.fn(),
      loadURL: vi.fn(),
      loadFile: vi.fn()
    }
  })),
  ipcMain: {
    on: vi.fn()
  },
  shell: {
    openExternal: vi.fn()
  }
} as unknown as typeof import('electron')

export default mockElectron
